package com.didi.gulimall.api;

import com.didi.gulimall.common.utils.R;
import com.didi.gulimall.common.vo.OrderItemVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author 10626
 */
@FeignClient("gulimall-coupon")
public interface CouponApiService {


    @PostMapping("coupon/order/query/{levelId}")
    public R getPromotionAmount(@PathVariable("levelId") Long levelId,
                                @RequestBody List<OrderItemVo> cartItems);
}
